package org.microservice.system.service;

import com.baomidou.mybatisplus.service.IService;
import org.microservice.common.bean.MenuVo;
import org.microservice.common.util.R;
import org.microservice.system.utils.dto.MenuTree;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/6/20
 * Time: 15:50
 * To change this template use File | Settings | File Templates.
 * Description:
 */
public interface SysMenuService extends IService<MenuVo>{

    List<MenuTree> getMenuTreeByUserNameAndMenuType(String userName, String[] menuType,boolean isTree);


    List<MenuVo> getMenusByRoleId(int roleId);

    List<MenuTree> getMenuListPage(Map<String, Object> params);

    int getMenuListPageTotal(Map<String, String> params);

    R save(MenuVo menuVo);

    void disabledOrEnabledById(int id, boolean disabled);
}
